//sku
import request from '@/utils/request';

//GET /admin/product/list/{page}/{limit}  获取sku列表数据
export const reqGetSkuList=(page,limit)=>request({url:`/admin/product/list/${page}/${limit}`,method:"get"});

//GET /admin/product/onSale/{skuId}  上架商品
export const reqOnSale=(skuId)=>request({url:`/admin/product/onSale/${skuId}`,method:"get"});

//GET /admin/product/cancelSale/{skuId}  下架商品
export const reqCancelSale=(skuId)=>request({url:`/admin/product/cancelSale/${skuId}`,method:"get"});

//DELETE /admin/product/deleteSku/{skuId}  删除sku数据
export const reqDeleteSku=(skuId)=>request({url:`/admin/product/deleteSku/${skuId}`,method:"DELETE"});